<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
 <%@ page  import="util.*,cn.news.dao.*,cn.news.entity.*" %>


<!DOCTYPE HTML>
<html>
<body>

<%
		/* request.setCharacterEncoding("utf-8");
        int tid=  Integer.parseInt(request.getParameter("tid"));
        int result=TopicDao.DAO.DelTopic(tid); */
        int result=(Integer)request.getAttribute("result");
         if (result>0){
	
out.println("删除标题成功");
  
  }else{
	  out.println("删除标题失败");  
	  
  }
 %>
       <span id="timer" > 10</span>秒返回,<a href="topic_list.jsp">返回</a>
        <script>
  
  var d=document.getElementById("timer").innerHTML;
  window.setInterval(function() {
	  
	  d--;
	  if(d<1)
		  {
		  window.location="topic_list.jsp";
		  
		  return;
		  }
  	document.getElementById("timer").innerHTML=d;
  }, 1000);
  
  
  </script>  

</body>
</html>
